package com.cskaoyan.bean;

import lombok.Data;

/**
 * @author stone
 * @date 2022/07/14 09:50
 */
@Data
public class BaseRespVo<T> {
    T data;
    String msg;
    int status;

    public static <T> BaseRespVo ok(T data) {
        BaseRespVo baseRespVo = new BaseRespVo();
        baseRespVo.setData(data);
        baseRespVo.setMsg("OK");
        baseRespVo.setStatus(200);
        return baseRespVo;
    }
}
